package com.dongzhu1428.express.module1.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Builder;
import com.baomidou.mybatisplus.annotation.TableField;
/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2022-11-10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = false)
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
    *  用户id
    */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;



    /**
    *  快递员id
    */
    @TableField("`courier_id`")
    private Integer courierId;

    /**
    *  密码
    */
    @JsonIgnore
    @TableField("`password`")
    private String password;

    /**
    *  昵称
    */
    @TableField("`nickname`")
    private String nickname;

    /**
    *  用户名
    */
    @TableField("`name`")
    private String name;

    /**
    *  电话
    */
    @TableField("`phone`")
    private String phone;
    /**
    *  邮件
    */
    @TableField("`email`")
    private String email;
    /**
    *  好评数
    */
    @TableField("`like_num`")
    private Integer likeNum;
    /**
    *  差评数
    */
    @TableField("`dislike_num`")
    private Integer dislikeNum;


}
